package DesignPatterns.FactoryMode.order;

import DesignPatterns.FactoryMode.coffee.Coffee;
import DesignPatterns.FactoryMode.coffee.LatteCoffee;

public class createLatteCoffee implements MethodFactory{

    @Override
    public Coffee createCoffee(String type) {
        Coffee coffee=new LatteCoffee();
        coffee.setName(type);
        coffee.ok();
        return coffee;
    }
}
